<% include head %>
<% if (success) { %> 
<div class="alert alert-success"> 
<%= success %> 
</div> 
<% } %> 
<% if (!user) { %> 
<div class="hero-unit"> 
<h1>欢迎来到Microblog</h1> 
<p>Microblog 是一个基于Node.js 的微博系统。</p> 
<p> 
<a class="btn btn-primary btn-large" href="/login">登录</a> 
<a class="btn btn-large" href="/reg">立即注册</a> 
</p> 
</div> 
<% } else { %> 
<% include say %>
<% } %> 
<% include posts %>
<% include foot %>